/**
 * Exhibify - jQuery Exhibit Plugin
 * Version 0.2 - 8/1/2008
 * @author Edward Benson <eob@mit.edu>
 *
 * This package is distributed under the MIT license.
 * For full license information, see LICENSE.TXT
 *
 *
 **/

(function($){
	$.fn.exhibify = function(options){
        opts = $.extend({}, $.fn.exhibify.defaults, options);
		$.fn.exhibify.load_exhibit();
		$.fn.exhibify.load_data_file('http://simile.mit.edu/exhibit/examples/flags/data.json');		
    };

	$.fn.exhibify.load_data_file = function(url) {
		
	}

	$.fn.exhibify.load_exhibit = function() {
		if (($.fn.exhibify.loaded == true)  || (typeof window.Exhibit != "undefined")) {
			return;
		}
		$.fn.exhibify.loaded = true;
		jQuery.getScript('http://static.simile.mit.edu/exhibit/api-2.0/exhibit-api.js');		
	};
	
	$.fn.exhibify.defaults = {};
	$.fn.exhibify.loaded = false;
	
})(jQuery);
